package dispatcher.group.gui.listener;

import java.awt.event.ActionEvent;

import state.group.events.EventCollection;

/**
 * This class encapsulates any major elevator changes (ie. Registering and De-registering) that have
 * occurred
 * @author Caleb
 *
 */
public class ElevatorUpdateEvent extends ActionEvent {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	private EventCollection collection;
	
	/**
	 * The main constructor
	 * @param source The source of the event
	 * @param collection The collection of events that have occurred
	 */
	public ElevatorUpdateEvent(Object source, EventCollection collection) {
		super(source, 0, "");
		this.collection = collection;
	}

	/**
	 * This method return the list of events
	 * @return Return the list of events
	 */
	public EventCollection getCollection() {
		return collection;
	}	
}
